package shajie.shajun.mmhf.View.Fragment;

import android.view.View;

import org.zackratos.ultimatebar.UltimateBar;

import java.util.ArrayList;

import shajie.shajun.mmhf.Base.BaseFragment;
import shajie.shajun.mmhf.Public_Data;
import shajie.shajun.mmhf.R;
import shajie.shajun.mmhf.databinding.FragmentShopmoneyBinding;

/**
 * Created by admin on 2017/11/23.
 */

public class ShopMoney_Fragment extends BaseFragment<FragmentShopmoneyBinding> {
    private FragmentShopmoneyBinding mBinding;
    private ArrayList<String> strings= new ArrayList<>();
    @Override
    public int setlayoutid() {
        return R.layout.fragment_shopmoney;
    }
    @Override
    public void init(final FragmentShopmoneyBinding binding) {
        this.mBinding=binding;
        strings.clear();
        final UltimateBar ultimateBar=new UltimateBar(getActivity());
        ultimateBar.setColorBar(getResources().getColor(R.color.blackgray),0);
        Public_Data.number++;
        mBinding.imgShopback.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                getFragmentManager().popBackStack();
            }
        });


    }

    @Override
    public void onDestroy() {
        Public_Data.number--;
        super.onDestroy();
    }
}
